package com.aerozhonghuan.logisticsmall.modules.user.logic;

import android.content.Context;

import com.aerozhonghuan.logisticsmall.framework.base.URLs;
import com.aerozhonghuan.logisticsmall.modules.user.beans.UserBean;
import com.aerozhonghuan.oknet2.CommonCallback;
import com.aerozhonghuan.oknet2.RequestBuilder;

/**
 * 描述 用户相关接口
 *
 * @author zhangyonghui
 * 创建日期 2019-05-17
 */

public class UserInfoWebRequest {
    private static final String TAG = "UserInfoWebRequest";

    /**
     * 退出登录
     *
     * @.param context
     * @.param callback
     */
    public static void logout(Context context, String devId, String uuid, String token, String sid, CommonCallback<Object> callback) {
        RequestBuilder.with(context).URL(URLs.SERVER_LOGOUT)
                .para("devId", devId)
                .para("uuid", uuid)
                .para("token", token)
                .para("sid", sid)
                .onSuccess(callback).excute();
    }
}
